//This trigger is to call the Webservice for insert and delete into Account serviceareazipcode
trigger HF_AccountServiceArea on Service_Area_Zip_Codes__c (after Insert, before Delete) { 

    Set<Id> ZipId = new Set<ID>(); 
    Set<Id> deletezipId = new Set<ID>(); 
        if(trigger.isafter && trigger.isInsert)
        { 
        for(Service_Area_Zip_Codes__c z:Trigger.new)
        { 
            ZipId.add(z.Id); 
        } 
            HF_ClientWSAccountzip.AddServiceAreaZipCode(ZipId); 

        } 
        if(trigger.isDelete)
        { 
        Set<String> finset = new Set<String>();
        for(Service_Area_Zip_Codes__c z: Trigger.old)
        {
        finset.add(z.id+'$'+z.Affiliate_Partner_ID__c+'$'+z.Postal_Code__c); 

        system.debug('^^^^^^^^'+finset); 
        } 
           HF_ClientWSAccountzip.DeleteServiceAreaZipCode(finset); 

        } 
}